/**
 * 
 */
package com.kathez.dao;

import java.util.List;

import com.kathez.entity.BusinessOperable;
import com.kathez.entity.KathezEntity;

/**
 * The result of the Fetch DAO operation.
 * 
 * @author Balaji T
 *
 */
public interface DAOFetchResult extends DAOResult {
	/**
	 * Returns the successfully Fetched object. 
	 * @return
	 */
	BusinessOperable getFetchedObject();
	
	/**
	 * Returns the list of successfully Fetched objects, in case multiples objects Fetched.
	 * @return
	 */
	List<KathezEntity> getFetchedObjectList();
	
	/**
	 * Returns the no of objects Fetched by the Fetch operation.
	 * @return
	 */
	int getFetchCount();
	
	/**
	 * indicates whether the Fetch operation is success or not.
	 * @return
	 */
	boolean isFetchSuccess();
	
	/**
	 * If Fetch operation is failed, returns the error code caused for failure
	 * @return
	 */
	String getFetchErrCode();
	
	/**
	 * If Fetch operation is failed, returns the error message caused for failure
	 * @return
	 */
	String getFetchErrMsg();
}
